﻿Ext.define('MyApp.store.MeetingTopic', {
    extend: 'Ext.data.Store',
    config: {
        autoLoad: false,
        proxy: {
            type: 'jsonp',
            url: commLib.Website + '/ashx/MeetingHandler.ashx',
            reader: {
                type: 'json',
                rootProperty: 'ResponseData'
            }
        },
        listeners: {
            load: function (store, records, successful, operation) {
                //                var index = 0;
                //                store.each(function (record, index) { record.set('index', index); });


                //                for (var i = 1; i <= store.getCount(); i++) {
                //                    var record = store.getAt(i);
                //                    record.set('index', i);
                //                }

            }
        }
    }
});